﻿using System;
using System.Collections.Generic;

namespace E.Model
{
    [Serializable]
    public class QuestionCategoryModel
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public int DefaultScore { get; set; }
    }

    [Serializable]
    public class QuestionModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public int CategoryID { get; set; }
        public string CategoryName { get; set; }
        public int CourseID { get; set; }
        public string CourseName { get; set; }
        public string ImgUrl { get; set; }
        public string SoundUrl { get; set; }
        public int Score { get; set; }
        public string Description { get; set; }
        public string KnowledgePoint { get; set; }
        public bool DelFlag { get; set; }
        public IList<QuestionOptionModel> OptionList { get; set; }
        public Dictionary<int, string> AreaList { get; set; }
        public DateTime AddDate { get; set; }
        public string[] AreaIDArray { get; set; }
        public bool IsRequired { get; set; }
        public int MaxScore { get; set; }
    }

    [Serializable]
    public class QuestionOptionModel
    {
        public int ID { get; set; }
        public int QuestionID { get; set; }
        public int SerialNumber { get; set; }
        public string OptionTitle { get; set; }
        public bool IsCorrect { get; set; }
    }

    [Serializable]
    public class ShortQuestionModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public int CategoryID { get; set; }
        public string CategoryName { get; set; }
    }

    [Serializable]
    public class SearchQuestionModel
    {
        public string Title { get; set; }
        public int CategoryID { get; set; }
        public int AreaID { get; set; }
        public int CourseID { get; set; }
        public int ProjectID { get; set; }
        public int IsRequired { get; set; }
        public int IsPublic { get; set; }
    }

    [Serializable]
    public class QuestionListModel
    {
        public int TotalCount { get; set; }
        public IList<ShortQuestionModel> List { get; set; }
    }
}
